<?php TPL::output('admin/global/header.tpl.htm'); ?>
<body >
<div id="body-wrapper">
<div id="main-content">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3><?php echo $this->crumb['last']['name']; ?></h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/topic/save_ajax/topic_id-<?php echo $this->topic['topic_id']; ?>" method="post">
					<input type="hidden" name="refer" value="<?php echo $this->refer;?>" />
					<fieldset>
					<p>
						<label>话题标题：
						<input class="text-input small-input" type="text" name="topic_title" id="topic_title" value="<?php echo $this->topic['topic_title']; ?>" name="small-input" />
						</label>
					</p>
					<p>
						<label>话题描述：</label>
						<textarea name="topic_description" id="topic_description" cols="100" rows="3"><?php echo $this->topic['topic_description']; ?></textarea>
					</p>
					<p>
						<label>缩略图：</label>
						<p><img src="<?php echo $this->topic['topic_pic_max']; ?>" id="topic_pic"/></p>
						<input name="topic_pic" class="upload-input" type="file">
					</p>
					<p>
						<label>是否锁定话题：</label>
						<input type="radio" name="topic_lock" id="topic_lock" value="1"<?php if($this->topic['topic_lock'] == "1") echo " checked";?>/>
						是&nbsp;&nbsp;
						<input type="radio" name="topic_lock" id="topic_lock" value="0"<?php if($this->topic['topic_lock'] == "0") echo " checked";?>/>
						否 </p>
					<p>
						<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
					</p>
					</fieldset>
				</form>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
